package com.nw.game.controller;

import com.nw.game.service.BackstageServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class WebController {
    @Autowired
    BackstageServer backstageServer;
    @PostMapping(value = "/data",produces = "application/json;charset=utf-8")
    public String backstage(){
        return backstageServer.getAllUser();
    }
}
